an artificial neuron using a step function as the activation function
What is the meaning of the output layer?
Task
Hint: if You are not sure about the dimensions of the matrix, start by sketching the network first
clf = MLPClassifier(hidden_layer_size = [30,30], # two hidden layers with 30 nodes each
activation ="logistic" ,
solver = "sgd", # stochastic gradient descent
learning_rate = 0.1,
max_iter=300).fit(X_train, y_train)
# define the keras model
model = Sequential()
model.add(Dense(12, input_shape=(8,), activation='relu'))
model.add(Dense(8, activation='relu'))
model.add(Dense(1, activation='sigmoid'))
model.compile(loss='binary_crossentropy', optimizer='adam', metrics=['accuracy'])
fastai
make it easy to use pre-trained model without dealing with the details (tensorflow
, pytorch
, keras
)